home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CUJ9206.ARJ
/
1006099A
< prev
next >
Wrap
Text File
|
1992-06-02
|
269b
|
18 lines
#include <stdio.h>
#define MAX_LEN 10
#define EDIT_MASK(size) "%" #size "s"
main()
{
char str[MAX_LEN + 1];
printf("Enter string (max length %u): ", MAX_LEN);
scanf(EDIT_MASK(MAX_LEN), str);
printf("str contains >%s<\n", str);
return (0);
}